<php>
	$cid = $_GET['id'];
	$term = sp_get_term($cid); 
	$parent = (int)$term['parent']; 
	if($parent != 0){ 
		$label = sp_get_term($parent)['name']; 
	 	$left_list = sp_get_child_terms($parent); 
	}else{ 
		$label = $term['name']; 
		$left_list = sp_get_child_terms($cid); 
	}
</php>
<div class="container-left am-u-md-3 am-fl am-text-center">
	<div class="am-panel am-panel-default am-radius" data-am-sticky="{top:100,animation: 'slide-left'}">
		<div class="am-panel-hd">
			<h3 class="am-panel-title">{$label}</h3>
		</div>
		<ul class="am-list">
			<foreach name="left_list" item="vo">
				<li>
					<if condition="$vo.term_id eq $cid">
						<a href="/index.php?m=list&a=index&id={$vo.term_id}" class="am-btn am-btn-success">
							<else />
							<a href="/index.php?m=list&a=index&id={$vo.term_id}" class="am-btn am-btn-default">
					</if>
					{$vo.name}</a>
				</li>
			</foreach>
		</ul>
		<div class="am-panel-footer">
			<i class="am-icon-envelope">&nbsp;投稿信箱：</i>
			<a href="mailto:support@lanyy.net" style="color:#5eb95e;">support@lanyy.net</a>
		</div>
	</div>
</div>